
import {createPinia,defineStore} from "pinia";
// import {ref} from 'vue'
export default createPinia();
// export const loading = ref(false)
export const useRouteStore = defineStore("routeStore",{
    state(){
        return {
            isAddRoute:false,
            loading:false
        }
    },
    actions:{
        setIsAddRoute(isAddRoute:boolean){
            this.isAddRoute = isAddRoute;
        },
        setLoading(loading:boolean){
            this.loading = loading
        }
    }
})
